﻿using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Windows;
using System.Collections.Generic;
using System.Linq;
using Wpf.Ui.Appearance;

namespace GameTools.ViewModels
{
    public class SettingsPageViewModel : BindableBase
    {
        private ApplicationTheme _currentApplicationTheme;

        public ApplicationTheme CurrentApplicationTheme
        {
            get => _currentApplicationTheme;
            set
            {
                if (SetProperty(ref _currentApplicationTheme, value))
                {
                    ApplicationThemeManager.Apply(value);
                }
            }
        }

        public SettingsPageViewModel()
        {
            // 获取当前主题
            CurrentApplicationTheme = ApplicationThemeManager.GetAppTheme();
        }
    }
}
